package com.fastjrun.eladmin.itrms.mapstruct;

import com.fastjrun.eladmin.itrms.dto.ProjectDTO;
import com.fastjrun.eladmin.itrms.entity.RmsProject;
import com.fastjrun.eladmin.itrms.vo.ProjectVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;

import java.util.List;

public abstract class RmsProjectMapperDecorator implements RmsProjectMapper {

    @Autowired
    @Qualifier("delegate")
    private RmsProjectMapper delegate;

    @Override
    public ProjectVO toVO(RmsProject entity) {
        ProjectVO projectVO=delegate.toVO(entity);
        return projectVO;
    }

    @Override
    public List<ProjectVO> toVO(List<RmsProject> entityList) {
        return delegate.toVO(entityList);
    }

    @Override
    public RmsProject toEntity(ProjectDTO dto) {
        return delegate.toEntity(dto);
    }
}
